package com.hxzy.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hxzy.order.entity.TlWaybillLog;
import com.hxzy.order.mapper.TlWaybillLogMapper;
import com.hxzy.order.service.TlWaybillLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mingqian.Wu
 * @since 2023-06-27
 */
@Service
@DataSource(DataSourceType.ORDER)
public class TlWaybillLogServiceImpl extends ServiceImpl<TlWaybillLogMapper, TlWaybillLog> implements TlWaybillLogService {

    @Override
    public TlWaybillLog getWabillLogById(String id) {
        QueryWrapper<TlWaybillLog>queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("waybill_id",id);
        TlWaybillLog tlWaybillLog = baseMapper.selectOne(queryWrapper);
        return tlWaybillLog;
    }
}
